package com.ph.seata.account.mapper;

import com.ph.seata.account.model.AccountDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author swallow
 * @since 2021-06-29
 */
public interface AccountMapper extends BaseMapper<AccountDO> {

    int decreaseAccount(@Param("userId") String userId, @Param("amount") Double amount);

    int testGlobalLock(@Param("userId") String userId);
}
